<template>
  <div id="app">
    <!-- <router-view ></router-view>
    <router-view name="left" style="float: left;width: 50%; height: 300px;background-color: #ccc;"></router-view>
    <router-view name="right" style="float: left;width: 50%; height: 300px;background-color: #898;"></router-view>-->
    <!-- <div id="nav">
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link> |
      <router-link to="/header">About</router-link> |

    </div>-->
    <router-view />
  </div>
</template>
<script>
export default {
  name: "Bedinformation",

  mounted() {
    window.addEventListener(
      "hashchange",
      (e) => {
        var currentPath = window.location.hash.slice(1); // 获取输入的路由
        console.log("获取输入的路由");
        console.log(currentPath);
        if (this.$router.path !== currentPath) {
          this.$router.push(currentPath); // 动态跳转
        }
      },
      false
    );
  },
};
</script>
<style>
.el-table {
  font-size: 14px !important;
  border-spacing: 0 !important;
}

.el-table td,
.el-table th {
  padding: 2px 0 !important;
}

.el-table th {
  background: rgb(226, 226, 245) !important;
}
.el-table .cell {
  line-height: 18px !important;
}
.popper__arrow {
  display: none !important;
}
.el-autocomplete-suggestion li {
  line-height: 26px !important;
}
.datepicker > input {
  border: 1px solid #ccc;
  height: 32px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.datepicker > input {
  height: 32px;
  border: 1px solid #ccc;
}
/*.highlighted {*/
/*  color: #fff !important;*/
/*  background-color: #155a00 !important;*/
/*}*/
/*.el-table--enable-row-hover .el-table__body tr:hover > td {*/
/*  color: #fff !important;*/
/*  background-color: #155a00 !important;*/
/*}*/
::-webkit-scrollbar {
  /*滚动条整体样式*/

  width: 5px; /*高宽分别对应横竖滚动条的尺寸*/

  height: 5px;
}

::-webkit-scrollbar-thumb {
  /*滚动条里面小方块*/

  border-radius: 10px;

  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);

  background: #535353;
}

::-webkit-scrollbar-track {
  /*滚动条里面轨道*/

  -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);

  border-radius: 10px;

  background: #ededed;
}
::v-deep .el-range-separator {
  padding: 0 !important;
}
</style>
